package com.school.test.search.plugin.mongo;

import com.mongodb.client.MongoDatabase;

/**
 * @author 马洁
 * @date 2019/12/21 - 17:17
 */
public class MongoDb {
    static MongoDatabase mongoDatabase;

    public static void setMongoDatabase(MongoDatabase mongoDatabase) {
        MongoDb.mongoDatabase = mongoDatabase;
    }

    public static MongoDatabase use() {
        return mongoDatabase;
    }
}
